From fe70c6f4812a7c8076be3d8c12cc914f7c3b6d19 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Wed, 13 Sep 2023 15:59:44 -0400 Subject: settings_setting: Don't remove the AudioEngine workaround --- src/common/settings_setting.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/settings_setting.h b/src/common/settings_setting.h index 79d2b715f..7be6f26f7 100644 --- a/src/common/settings_setting.h +++ b/src/common/settings_setting.h @@ -113,6 +113,9 @@ protected: return value_.has_value() ? std::to_string(*value_) : "none"; } else if constexpr (std::is_same_v) { return value_ ? "true" : "false"; + } else if constexpr (std::is_same_v) { + // Compatibility with old AudioEngine setting being a string + return CanonicalizeEnum(value_); } else if constexpr (std::is_floating_point_v) { return fmt::format("{:f}", value_); } else if constexpr (std::is_enum_v) { -- cgit v1.2.3